#pragma once

#include <QWidget>
#include "ui_KtLoginSettingWgt.h"
#include "ktloginstruct.h"

QT_BEGIN_NAMESPACE
namespace Ui { class KtLoginSettingWgtClass; };
QT_END_NAMESPACE

class KtLoginSettingWgt : public QWidget
{
	Q_OBJECT

public:
	KtLoginSettingWgt(QWidget *parent = nullptr);
	~KtLoginSettingWgt();
	void setLoginSettingInfo(const KtLoginSettingInfo& info);
	KtLoginSettingInfo getLoginSettingInfo();

Q_SIGNALS:
	void sureBtnClickedSgl(KtLoginSettingInfo info);
	void cancelBtnClickedSgl();

private Q_SLOTS:
	void sureBtnClickedSlt();
	void cancelBtnClickedSlt();

private:
	void initConnect();
	void initStyle();

private:
	Ui::KtLoginSettingWgtClass *ui;
	KtLoginSettingInfo m_info;
};
